//
//  Entity.h
//  kasama1
//
//  Created by 丁逸鹏 on 15/3/3.
//
//

#ifndef __kasama1__Entity__
#define __kasama1__Entity__

#include "cocos2d.h"
#include "Global.h"
#include <time.h>
#include <stdlib.h>
using namespace cocos2d;
class Entity:public Node
{
public:
    Sprite * sprite;
    float scales;
    int x,y;
    Entity();
    enum State{normal,rowcrush,colcrush,boss};
    virtual void onEnter();
    virtual Rect getBoundingBox();
    void changeState(State state);
    void setXY(int xx,int yy);
    CC_SYNTHESIZE(int, m_row, Row);
    CC_SYNTHESIZE(int, m_col, Col);
    CC_SYNTHESIZE(bool, m_isNeedRemove, IsNeedRemove);
    CC_SYNTHESIZE(bool, m_isInfty, IsInfty);
    CC_SYNTHESIZE(State, m_state,NowState);
    
};
#endif /* defined(__kasama1__Entity__) */
